package luogu;

import java.util.Scanner;

public class Main20 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.nextLine();
        Student [] students = new Student[n];
        for (int i = 0; i < n; i++) {
            String [] parts = sc.nextLine().split(" ");
            String name = parts[0];
            int age = Integer.parseInt(parts[1]);
            int score = Integer.parseInt(parts[2]);
            students[i] = new Student(name,age,score);
        }
        for (Student student : students) {
            student.attendTraining();
            System.out.println(student);
        }
    }
}
